<div class="container-fluid">
    <!--查询区域-->
    <div class="row ikg-row">
        <div class="col-sm-12 ikg-col">
            <div class="panel panel-default ikg-panel">
                <div class="panel-body">
                    <div class="col-lg-4">
                        <div class="input-group">
                            <label class="input-group-addon ikg-font-12">台区名称:</label>
                            <select class="form-control select2-container ikg-select" data-bind="options:tgOpts,
                            optionsText:'tg_name',
                            optionsValue:'tg_id',
                            value:fixedTgId,
                            optionsCaption:'请选择台区'"></select>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <button type="button" id="btn_query" class="btn btn-success btn-sm"
                                data-bind="click:fnSearch">
                            <i class="fa fa-search fa-lg"></i><span class="hidden-xs hidden-sm"> 查询</span></button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--工具栏-->
    <div class="row ikg-row">
        <div class="col-sm-12 ikg-col">
            <div id="toolbar" class="btn-group">
                <button type="button" class="btn btn-success btn-md" data-bind="click:fnRemove">
                    <i class="fa fa-trash fa-lg" aria-hidden="true"></i><span class="hidden-sm hidden-xs"> 删除</span>
                </button>
                <button type="button" class="btn btn-success btn-md" data-bind="click:fnViewDetails">
                    <i class="fa fa-file-text fa-lg" aria-hidden="true"></i><span
                        class="hidden-sm hidden-xs"> 查看明细</span>
                </button>
                <button type="button" class="btn btn-success btn-md" data-bind="click:fnViewLog">
                    <i class="fa fa-file-text fa-lg" aria-hidden="true"></i><span
                        class="hidden-sm hidden-xs"> 查看日志</span>
                </button>
                <button type="button" class="btn btn-success btn-md" data-bind="click:fnExport">
                    <i class="fa fa-file-excel-o fa-lg" aria-hidden="true"></i><span
                        class="hidden-sm hidden-xs"> 导出</span>
                </button>
            </div>
        </div>
    </div>
    <!--列表区域-->
    <div class="row ikg-row">
        <div class="col-sm-12 ikg-col table-responsive">
            <table data-bind="tableView:tableViewModel" class="table text-nowrap"></table>
        </div>
    </div>
</div>
<div id="detailDlg" class="modal hide" tabindex="-1" role="dialog"
     data-bind="template:{name:'segPowerDetailsTemplate',data:detailsViewModel},ikgModal:{ backdrop: 'static', keyboard: false, show: detailDlgVisible}"></div>
<div id="callLogDlg" class="modal hide" tabindex="-1" role="dialog"
     data-bind="template:{name:'calLogTemplate',data:calLogViewModel},ikgModal:{ backdrop: 'static', keyboard: false, show: calLogDlgVisible}"></div>
<script id="segPowerDetailsTemplate" type="text/html">
    <div class="modal-dialog" style="width: 1100px;height:540px;" role="document">
        <div class="modal-content">
            <div class="modal-header ikg-modal-header">
                <button type="button" class="close ikg-close" data-bind="click: close">&times;</button>
                <span class="modal-title ikg-modal-title" data-bind="text:title"></span>
            </div>
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="row ikg-row">
                        <div class="col-sm-12 ikg-col" id="resultContainer" style="height: 300px"></div>
                    </div>
                    <div class="row ikg-row">
                        <div class="col-sm-12 ikg-col" id="currentCurse" style="height: 300px"></div>
                    </div>
                    <div class="row ikg-row">
                        <div class="col-sm-12 ikg-col table-responsive">
                            <table data-bind="tableView:detailsTable" class="table text-nowrap"></table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default ikg-btn-12" data-bind="click:close">
                    <i class="fa fa-close fa-lg"></i> 关闭
                </button>
            </div>
        </div>
    </div>
</script>
<script id="calLogTemplate" type="text/html">
    <div class="modal-dialog" style="width: 600px;" role="document">
        <div class="modal-content">
            <div class="modal-header ikg-modal-header">
                <button type="button" class="close ikg-close" data-bind="click: close">&times;</button>
                <span class="modal-title ikg-modal-title" data-bind="text:title"></span>
            </div>
            <div class="modal-body">
                <div class="panel panel-success">
                    <!--<div class="panel-heading">计算日志</div>-->
                    <div class="panel-body">
                        <textarea class="form-control ikg-textarea-12" rows="12" id="calLog"
                                  data-bind="text:processMsg,enable:false"></textarea>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default ikg-btn-12" data-bind="click:close">
                    <i class="fa fa-close fa-lg"></i> 关闭
                </button>
            </div>
        </div>
    </div>
</script>